import { Controller, Get, Post, Query } from '@nestjs/common'
import { RangeService } from './range.service'

@Controller('range')
export class RangeController {
  constructor(private rangeService: RangeService) {}

  @Get()
  getRange(@Query('num') num: string) {
    console.log(num)
    return this.rangeService.getRange(num)
  }
  @Post()
  addRange() {
    return {
      code: 200
    }
  }
}
